﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Audio;
using Boomer.Source.FrameWork.State_and_Screen_Manager.Screen_Manager;

namespace Boomer.Source.Sound_Manager
{
    class SoundManager
    {
        private static SoundManager manager = null;

        public SoundEffect setNormalBoom;
        public SoundEffect setTimeBoom;
        public SoundEffect pickItem;
        public SoundEffect illusion;
        public SoundEffect boomExplor;
        public SoundEffect playerDie;

        public Song menuTheme;
        public Song mainTheme;


        SoundManager()
        {
        
        }


        public static SoundManager getInstance()
        {
            if (manager == null)
                manager = new SoundManager();

            return manager;
        }

        public void init(ScreenManager screenManager)
        {
            setNormalBoom = screenManager.m_pStateManager.m_pGame.Content.Load<SoundEffect>("Sound//SetNormalBomb");
            setTimeBoom = screenManager.m_pStateManager.m_pGame.Content.Load<SoundEffect>("Sound//SetTimerBomb");
            pickItem = screenManager.m_pStateManager.m_pGame.Content.Load<SoundEffect>("Sound//PickItem");
            illusion = screenManager.m_pStateManager.m_pGame.Content.Load<SoundEffect>("Sound//Illusion");
            boomExplor = screenManager.m_pStateManager.m_pGame.Content.Load<SoundEffect>("Sound//BombExplosion");
            playerDie = screenManager.m_pStateManager.m_pGame.Content.Load<SoundEffect>("Sound//PlayerDie");

            menuTheme = screenManager.m_pStateManager.m_pGame.Content.Load<Song>("Sound//MenuTheme");
            mainTheme = screenManager.m_pStateManager.m_pGame.Content.Load<Song>("Sound//MainTheme");
        }
    }
}
